package com.ruoyi.common.utils;

public class DiskUtils {
    public static final int dirUnit = 100;
    public static final int minSize = 4;
    public static final int maxSize = 16;
    public static final String dgData = "dg_data";
    public static final String tgData = "tg_data";
    public static final String tgCommitLog = "tg_commit_log";

    public static int calcDirCount(int dirSize){
        int dirCnt = dirSize/dirUnit;
        if(dirCnt<minSize) return minSize;
        if(dirCnt>maxSize) return maxSize;
        return dirCnt;
    }
}
